<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class AlertAuthorToProductTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('products', function (Blueprint $table) {
            $table->string('author')->nullable()->comment('作者');
            $table->string('author_about')->nullable()->comment('关于作者');
            $table->longText('introduce')->nullable()->comment('商品介绍');
            $table->string('remark')->nullable()->comment('备注');
        });

        Schema::table('product_details', function (Blueprint $table) {
            $table->float('priced')->nullable()->after('package')->comment('定价');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
